#!/bin/bash
#runs the server adds its pid to the pids file
#usage: ./server ip port


MP="`dirname \"$0\"`"  
MP+="/../bin/"
java "-Djava.rmi.server.hostname=$1" -Djava.security.manager -Djava.security.policy="${MP}../policy-file" -cp "$MP" server.LongcatServer $2 &
echo $! >> "$MP../test/pids"

